import Vue from 'vue'
import './plugins/axios'
import App from './App.vue'
import router from './router'
import store from './store'
import './assets/reset.css'

import axios from 'axios';  //引入axios
Vue.prototype.$http= axios

// 引入element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI)

import VueLazyload from 'vue-lazyload'
Vue.use(VueLazyload)
// 配置项
Vue.use(VueLazyload, {
  preLoad: 1.3,
  error: 'https://s1.imagehub.cc/images/2021/11/10/shibai.md.jpg',
  loading: 'https://s1.imagehub.cc/images/2021/11/10/load.md.gif',
  attempt: 3,
  
})

// 注册组件
import VDistpicker from 'v-distpicker'
Vue.component('v-distpicker', VDistpicker)

// 引入矢量图
import './assets/font/iconfont.css'
// 导入做适配的依赖
import 'amfe-flexible'

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
